﻿using Microsoft.AspNetCore.Authorization;

namespace ServiceCore.WebApi.jwt
{
    public class JwtAuthorizationRequirement : IAuthorizationRequirement
    {
        //这里可以扩展一些其他的角色或者需要的东西.
        //txt参数是在使用策略授权时传入进来的，例如:Authorize(Policy= "MyPolicy")的MyPolicy
        public JwtAuthorizationRequirement(string name)
        {
            Name = name;
        }
        public string? Name { get; set; }
    }
}
